package com.aaa.dem1109.代理模式.JDK动态代理;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/9  15:33
 */
public class Test {
    public static void main(String[] args) {
                                                    //为谁生成代理类
        proxyFactory proxyFactory = new proxyFactory(new FangDong());
        //代理对象
        Chuzu instance = proxyFactory.getInstance();
        instance.chuzu();
        System.out.println("********************");
        instance.maifang();
    }
}
